package com.youku.component.script;

public class Job {

	/**
	 * 脚本
	 */
	private String script;

	/**
	 * 是否执行
	 */
	private boolean execute;

	public Job(String script) {
		super();
		this.script = script;
		this.execute = true;
	}

	public Job(String script, boolean execute) {
		super();
		this.script = script;
		this.execute = execute;
	}

	public void execute() {
		if (execute) {
			ScriptExecutor.execute(script);
		}
	}

}
